package com.picturehistory.core.rest.util;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

public final class PMF {
	/*
	 * create an instance of PersistenceManagerFactory for JDO mapping.
	 * name "transactions-optional" has been defined for a "persistence-manager-factory"
	 * element in jdoconfig.xml
	 */
	private static final PersistenceManagerFactory pmfInstance =
		JDOHelper.getPersistenceManagerFactory("transactions-optional");
	
	private PMF() {};
	
	public static PersistenceManagerFactory get() {
		return pmfInstance;
	}

}
